package com.linxiao.hrcrm.sms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 短信发送记录对象 sms_send_records
 * 
 * @author zhoudong
 * @date 2024-07-11
 */
public class SmsSendRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 消息ID */
    private String messageId;

    /** 商户ID */
    @Excel(name = "商户ID")
    private String mchId;

    /** 发送者的电话号码或ID */
    @Excel(name = "发送者的电话号码或ID")
    private String sender;

    /** 接收者的用户ID */
    @Excel(name = "接收者的用户ID")
    private String uid;

    /** 接收者的电话号码 */
    @Excel(name = "接收者的电话号码")
    private String recipient;

    /** 短信内容 */
    @Excel(name = "短信内容")
    private String content;

    /** 发送状态：PENDING-发送中，SENT-已发送，DELIVERED-已回执，FAILED-发送失败 */
    @Excel(name = "发送状态：PENDING-发送中，SENT-已发送，DELIVERED-已回执，FAILED-发送失败")
    private String status;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMessageId(String messageId) 
    {
        this.messageId = messageId;
    }

    public String getMessageId() 
    {
        return messageId;
    }
    public void setMchId(String mchId) 
    {
        this.mchId = mchId;
    }

    public String getMchId() 
    {
        return mchId;
    }
    public void setSender(String sender) 
    {
        this.sender = sender;
    }

    public String getSender() 
    {
        return sender;
    }
    public void setUid(String uid) 
    {
        this.uid = uid;
    }

    public String getUid() 
    {
        return uid;
    }
    public void setRecipient(String recipient) 
    {
        this.recipient = recipient;
    }

    public String getRecipient() 
    {
        return recipient;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("messageId", getMessageId())
            .append("mchId", getMchId())
            .append("sender", getSender())
            .append("uid", getUid())
            .append("recipient", getRecipient())
            .append("content", getContent())
            .append("status", getStatus())
            .append("sendTime", getSendTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
